/*    
 * Copyright (c) 2013 ISoftStone, Inc.
 * All right reserved.
 *
 * 文件名：      OrderServiceImpl.java
 * 作者:     Jacky Wang
 * 创建日期： 2013-8-6 上午10:47:22
 * 版本：           
 *
 */
package com.isoftstone.industry.aaa.core.service.assist.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.isoftstone.industry.persistance.bean.Order;
import com.isoftstone.industry.aaa.core.dao.assist.OrderDao;
import com.isoftstone.industry.aaa.core.service.assist.IOrderService;
import com.isoftstone.modules.core.persistence.IGenericDao;
import com.isoftstone.modules.core.service.impl.GenericServiceImpl;
import com.isoftstone.modules.core.utils.DateUtils;

/**
 * @author jacky
 */
@Service
public class OrderServiceImpl extends GenericServiceImpl<Order, String> implements IOrderService
{
	@Resource
	private OrderDao	orderDao;

	@Override
	public IGenericDao<Order, String> getDao()
	{
		return orderDao;
	}

	@Override
	public void markPaid(String id)
	{
		orderDao.markPaid(id, Order.STATE.ORDER_STATE_1, DateUtils.getCurrentTimestamp());
	}

}
